<%@ Control Language="c#" Inherits="Portal.OverlayMenu" EnableViewState="false" CodeBehind="OverlayMenu.ascx.cs" %>
<div id="menuRoot" runat="server" class="overlayMenuRoot">
	<a href="javascript:OpenOverlayMenu(document.getElementById('<%=menuItem.ClientID%>'), document.getElementById('<%=menuRoot.ClientID%>'))">
		<%=RootText%>
	</a>
</div>
<div id="menuItem" runat="server" style="display: none;" class="overlayMenu">
	<asp:Repeater ID="rptItems" runat="server">
		<ItemTemplate>
			<div nowrap runat="server" visible='<%# Container.DataItem as Portal.OverlayMenuSeparatorItem == null && ((Portal.OverlayMenuItem)Container.DataItem).Visible %>'
				class="overlayMenuItem" onmouseover="javascript:OverlayMenuOnMouseOver(this)" onmouseout="javascript:OverlayMenuOnMouseOut(this)"
				onclick='<%# Page.GetPostBackClientHyperlink(this, DataBinder.Eval(Container.DataItem, "MenuItemIndex").ToString() ) %>'>
				<img src='<%# DataBinder.Eval(Container.DataItem, "Icon") %>'>
				<%# DataBinder.Eval(Container.DataItem, "Text") %>
			</div>
			<div nowrap class="overlayMenuSeparator" runat="server" visible='<%# Container.DataItem as Portal.OverlayMenuSeparatorItem != null && ((Portal.OverlayMenuItem)Container.DataItem).Visible %>'>
				<hr>
			</div>
		</ItemTemplate>
	</asp:Repeater>
</div>
